.tabs-search-input {
  background: var(--requestly-color-surface-1);
  border-radius: 4px;
  font-size: var(--requestly-font-size-sm);
  color: var(--requestly-color-text-default);
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  border: 1px solid var(--requestly-color-white-t-20);
  height: 32px;
  align-items: center;
  &:focus {
    border-color: var(--requestly-color-primary);
    box-shadow: 0 0 0 2px var(--requestly-color-primary-t-20);
  }

  &::placeholder {
    color: var(--requestly-color-text-subtle);
  }
}

.tabs-operations-popover-content {
  width: 100%;
  padding: 8px;
  background-color: var(--requestly-color-surface-1);
  box-shadow: none;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.tabs-popover-list {
  display: flex;
  max-height: 480px;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px !important;
  align-self: stretch;
  overflow-y: auto;

  .ant-spin-nested-loading {
    width: 100%;
  }

  .tabs-ops-item {
    display: flex;
    padding: var(--requestly-space-3, 6px) var(--requestly-space-5, 12px);
    align-items: center;
    gap: var(--requestly-space-4, 8px);
    align-self: stretch;
    border: none;
    cursor: pointer;
    border-radius: 4px;
    &:hover {
      background: var(--requestly-color-white-t-10);
    }

    .tab-ops-item-container {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: var(--requestly-space-4);
    }

    .tab-ops-item-title {
      flex-grow: 1;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
      width: 150px; /* or max-width: 100%; */
      color: var(--requestly-color-text-default);
      font-family: var(--font-family-default);
      font-size: var(--font-size-sm, 12px);
      font-style: normal;
      font-weight: 400;
      line-height: 18px;
    }

    .tab-ops-item-close {
      color: var(--requestly-color-text-subtle);
      cursor: pointer;
      opacity: 0.7;
      width: 18px;
      height: 18px;
      padding: 2px;
      border-radius: 4px;
      &:hover {
        color: var(--requestly-color-text-default);
        background: var(--requestly-color-white-t-20, rgba(255, 255, 255, 0.12));
      }
    }
  }
}

.tabs-popover-list {
  scrollbar-width: none; /* Firefox */
}

.tabs-popover-list::-webkit-scrollbar {
  display: none;
}

.tab-title-tooltip {
  .ant-tooltip-inner {
    background-color: var(--requestly-color-black);
    color: var(--requestly-color-text-default);
    border-radius: 4px;
    padding: 6px 8px;
    font-size: var(--requestly-font-size-xs);
    font-weight: 400;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    max-width: 250px;
    word-wrap: break-word;
  }

  .ant-tooltip-arrow-content {
    --antd-arrow-background-color: var(--requestly-color-black) !important;
  }
}
